//
//  HomeGoodsDetailBigModel.h
//  FD
//
//  Created by Yasin on 2018/10/20.
//  Copyright © 2018年 ZhiYuan Network. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "HomeGoodsDetailModel.h"
//服务器返回数据可以再 HomeGoodsDetailViewController1.h 文件中查看
@interface HomeGoodsDetailBigModel : NSObject
/**1.标题*/
@property (nonatomic,  copy) NSString *name;
/**2.是否是单选 1:单选 0:多选*/
@property (nonatomic, strong) NSNumber *only;
/**3.默认选中的元素 -1:没有默认选中项; 26,15 根据匹配默认选中的元素*/
@property (nonatomic, strong) NSNumber *defaultSelect;
/**4.内容列表*/
@property (nonatomic, strong) NSArray <HomeGoodsDetailModel *>*ingredientList;

/**12-21 新增字段 free:n  表示前几个是免费的 */
@property (nonatomic, strong) NSNumber *free;
/**2019-1-15存放选中的小model*/
@property (nonatomic, strong) NSMutableArray <HomeGoodsDetailModel *>*selectArrayM;
@end

#pragma mark - 12-21需求修改
/**
 1. 新增字段 free:n  表示前几个是免费的
 "free":0, ,前0个是免费的 ===> 也就是说全部都是收费的
 "free":2,  前2个是免费的, 从第二个开始都是收费的。
 计算价格的时候要将此条需求加上
 
 2.给服务器传参数的时候:goodsIngredientList 按顺序传递
 */


//12-21参考数据
/**
 {"event":"SUCCESS","data":{"timeLimit":1,"quietTime":"11:05:12","thumbnail":"public/d2a72fdc66ac4a7e949534d3543c9592","originalPrice":0.00,"ingredientClassifyList":[{"name":"Size","only":1,"ingredientList":[{"originalPrice":11.00,"name":"12","currentPrice":11.00,"id":2},{"originalPrice":14.00,"name":"14","currentPrice":14.00,"id":3},{"originalPrice":5.00,"name":"8","currentPrice":5.00,"id":4}],"defaultSelect":4,"id":1,"free":0,"required":1},{"name":"Toppings","only":0,"ingredientList":[{"originalPrice":1.00,"name":"Chicken Strips","currentPrice":1.00,"id":5},{"originalPrice":1.00,"name":"Tandoori Chicken","currentPrice":1.00,"id":6},{"originalPrice":1.00,"name":"Ham","currentPrice":1.00,"id":7},{"originalPrice":1.00,"name":"Pepperoni","currentPrice":1.00,"id":8},{"originalPrice":1.00,"name":"Salami","currentPrice":1.00,"id":9},{"originalPrice":1.00,"name":"Beef mince","currentPrice":1.00,"id":10},{"originalPrice":1.00,"name":"Bacon","currentPrice":1.00,"id":11},{"originalPrice":1.00,"name":"Sausage slices","currentPrice":1.00,"id":12},{"originalPrice":1.00,"name":"Red onion","currentPrice":1.00,"id":13},{"originalPrice":1.00,"name":"Mixed peppers","currentPrice":1.00,"id":14},{"originalPrice":1.00,"name":"Pineapple","currentPrice":1.00,"id":15},{"originalPrice":1.00,"name":"Sweetcorn","currentPrice":1.00,"id":16},{"originalPrice":1.00,"name":"Mushrooms","currentPrice":1.00,"id":17},{"originalPrice":1.00,"name":"Olives","currentPrice":1.00,"id":18},{"originalPrice":1.00,"name":"Jalapeno","currentPrice":1.00,"id":19},{"originalPrice":1.00,"name":"Sundried tomatoes","currentPrice":1.00,"id":20},{"originalPrice":1.00,"name":"Fresh cherry tomatoes","currentPrice":1.00,"id":21},{"originalPrice":1.00,"name":"Extra Cheese","currentPrice":1.00,"id":22}],"defaultSelect":-1,"id":2,"free":2,"required":0}],"activeTime":"07:57:07","currentPrice":0.00,"onSale":1,"richtext":"public/5a621ee0a64442dbbdedc9cba7b40bbc","id":50,"title":"margherita"},"describe":""}
 */



//参考数据
/**
 {"event":"SUCCESS","data":{"timeLimit":0,"quietTime":"00:00:00","thumbnail":"public/d2a72fdc66ac4a7e949534d3543c9592","originalPrice":0.00,"ingredientClassifyList":[{"name":"Size","only":1,"ingredientList":[{"originalPrice":8.00,"name":"10","currentPrice":8.00,"id":1},{"originalPrice":11.00,"name":"12","currentPrice":11.00,"id":2},{"originalPrice":14.00,"name":"14","currentPrice":14.00,"id":3},{"originalPrice":5.00,"name":"8","currentPrice":5.00,"id":4}],"defaultSelect":4,"id":1,"required":1},{"name":"Toppings","only":0,"ingredientList":[{"originalPrice":1.00,"name":"Chicken Strips","currentPrice":1.00,"id":5},{"originalPrice":1.00,"name":"Tandoori Chicken","currentPrice":1.00,"id":6},{"originalPrice":1.00,"name":"Ham","currentPrice":1.00,"id":7},{"originalPrice":1.00,"name":"Pepperoni","currentPrice":1.00,"id":8},{"originalPrice":1.00,"name":"Salami","currentPrice":1.00,"id":9},{"originalPrice":1.00,"name":"Beef mince","currentPrice":1.00,"id":10},{"originalPrice":1.00,"name":"Bacon","currentPrice":1.00,"id":11},{"originalPrice":1.00,"name":"Sausage slices","currentPrice":1.00,"id":12},{"originalPrice":1.00,"name":"Red onion","currentPrice":1.00,"id":13},{"originalPrice":1.00,"name":"Mixed peppers","currentPrice":1.00,"id":14},{"originalPrice":1.00,"name":"Pineapple","currentPrice":1.00,"id":15},{"originalPrice":1.00,"name":"Sweetcorn","currentPrice":1.00,"id":16},{"originalPrice":1.00,"name":"Mushrooms","currentPrice":1.00,"id":17},{"originalPrice":1.00,"name":"Olives","currentPrice":1.00,"id":18},{"originalPrice":1.00,"name":"Jalapeno","currentPrice":1.00,"id":19},{"originalPrice":1.00,"name":"Sundried tomatoes","currentPrice":1.00,"id":20},{"originalPrice":1.00,"name":"Fresh cherry tomatoes","currentPrice":1.00,"id":21},{"originalPrice":1.00,"name":"Extra Cheese","currentPrice":1.00,"id":22}],"defaultSelect":-1,"id":2,"required":0}],"activeTime":"00:00:00","currentPrice":0.00,"onSale":1,"id":50,"title":"margherita"},"describe":""}
 */
